package com.example.mapper;

import com.example.pojo.CourseTableEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author jiangqiangqiang
 * @description:
 * @date 2022/3/18 3:22 PM
 */
@Mapper
public interface CourseTableMapper {
	int deleteByPrimaryKey(@Param("id") Long id);

	int insert(CourseTableEntity record);

	int insertSelective(CourseTableEntity record);

	CourseTableEntity selectByPrimaryKey(@Param("id") Integer id, @Param("course") String course);

	int updateByPrimaryKeySelective(CourseTableEntity record);

	int updateByPrimaryKey(CourseTableEntity record);

	int batchInsert(@Param("list") List<CourseTableEntity> list);

	List<CourseTableEntity> selectByStuNumber(@Param("list") List<String> list, @Param("userId") Long userId);

	void deleteBatch(@Param("list") List<Long> collect);
}